import request from "@/utils/request";

// 换取应用授权令牌
export function getAppAuthTokenByCode(grantType,code) {
  return request({
    url: "/alipay/mini-program/getAppAuthTokenByCode?grantType=" + grantType + '&code=' + code,
    method: "GET",
  });
}

// 创建小程序数据
export function createAlipayApp(data) {
  return request({
    url: "/alipay/info-auth-ali-app/create",
    method: "post",
    data: data,
  });
}
